package model.inter

import model.BlastView
import java.awt.Rectangle

/**
 * 这里是接收攻击的逻辑；
 */
interface Sufferable {


    //血量；

    var totalBlood:Int;



    fun notifySufferSucceser(attackableView: Attackable):Array<BlastView>? {

        totalBlood-=attackableView.attactPower;
        println("sufferable:attackablePower: ${attackableView.attactPower} ，剩余血量:${totalBlood}")
        return arrayOf(BlastView(getRect().x,getRect().y))
    }

    fun getRect(): Rectangle

}